from learners.modules.memory_manager import MemoryManager
from learners.strategies.training_strategy import StandardTraining

class ModularLearner:
    """使用组合的新型学习器"""

    def __init__(self, args, data_manager, model_func):
        # 组合而不是继承
        self.memory_manager = MemoryManager(args["memory_size"])
        self.training_strategy = StandardTraining()
        self.network = model_func(args)
        # ...other initialization...
